@layout("/common/_form.html",{js:["/assets/common/js/frameItem.js"],css:["/assets/common/module/formSelects/formSelects-v4.css"]}){

<form class="layui-form" id="userForm" lay-filter="userForm">
    <div class="layui-fluid" style="padding-bottom: 75px;">

        <div class="layui-card">
            <div class="layui-card-header">日程框架信息</div>
            <div class="layui-card-body">
                <div class="layui-form-item layui-row">
                    <input name="userId" type="hidden"/>
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">框架名称<span style="color: red;">*</span></label>
                        <div class="layui-input-block">
                            <input name="sframeName" placeholder="请输入您的日程框架名称" type="text" class="layui-input" lay-verify="required" required/>
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">组织<span style="color: red;">*</span></label>
                        <div class="layui-input-block">
                            <input name="organization" placeholder="请输入您的组织" type="text" class="layui-input" lay-verify="required" required/>
                        </div>
                    </div>

                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">开始日期</label>
                        <div class="layui-input-inline">
                            <input  name="startDate" placeholder="请选择框架的开始日期" type="text"  class="layui-input date-icon datatime" autocomplete="off"/>
                        </div>
                        <label class="layui-form-label">结束日期</label>
                        <div class="layui-input-inline">
                            <input  name="stopDate" placeholder="请选择框架的结束日期" type="text"  class="layui-input date-icon datatime" autocomplete="off"/>
                        </div>
                    </div>

                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">是否发布</label>
                        <div class="layui-input-inline">
                            <input type="checkbox" name="publish" lay-skin="switch" lay-filter="shareSwitch" lay-text="ON|OFF">
                        </div>

                        <label class="layui-form-label">是否为草稿</label>
                        <div class="layui-input-inline">
                            <input type="checkbox" name="draft" lay-skin="switch" lay-filter="draftSwitch" lay-text="ON|OFF">
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="layui-card" id="sframeItemMess">
            <div class="layui-card-header">日程框架项信息</div>
            <div class="layui-card-body">
                <div class="layui-form-item layui-row">
                    <input name="userId" type="hidden"/>
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">框架项序号<span style="color: red;">*</span></label>
                        <div class="layui-input-block">
                            <input name="serial[]" placeholder="请输入框架项序号" type="text" class="layui-input" lay-verify="required" required/>
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">框架项名称<span style="color: red;">*</span></label>
                        <div class="layui-input-block">
                            <input name="scheduleItemName[]" placeholder="请输入框架项名称" type="text" class="layui-input" lay-verify="required" required/>
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">开始时间</label>
                        <div class="layui-input-inline">
                            <input  name="startTime[]" placeholder="请选择框架项的开始时间" type="text" class="layui-input date-icon dataOnlyTime" autocomplete="off"/>
                        </div>
                        <label class="layui-form-label">结束时间</label>
                        <div class="layui-input-inline">
                            <input  name="stopTime[]" placeholder="请选择框架的结束时间" type="text" class="layui-input date-icon dataOnlyTime" autocomplete="off"/>
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <div class=" text-center">
            <button type="button" id="sframeItemAddBtn" class="layui-btn">添加日程项</button>
            <button type="button" id="sframeItemDelBtn" class="layui-btn">删除最后的日程项</button>
        </div>

        <div class="form-group-bottom text-center">
            <button class="layui-btn" lay-filter="btnSubmit" lay-submit>&emsp;保存框架&emsp;</button>
            <button type="reset" class="layui-btn layui-btn-primary" ew-event="closeDialog">&emsp;取消&emsp;</button>
        </div>
    </div>
</form>

@}
